package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the PROJECT_SHUJU database table.
 * 
 */
@Entity
@Table(name="PROJECT_SHUJU")
@NamedQuery(name="ProjectShuju.findAll", query="SELECT p FROM ProjectShuju p")
public class ProjectShuju implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PROJECT_SHUJU_PSHUJUID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PROJECT_SHUJU_PSHUJUID_GENERATOR")
	@Column(name="PSHUJU_ID")
	private long pshujuId;

	@Column(name="PSHUJU_DATA")
	private BigDecimal pshujuData;

	//bi-directional many-to-one association to Salary
	@ManyToOne
	@JoinColumn(name="SALARY_ID")
	private Salary salary;

	//bi-directional many-to-one association to SalaryProject
	@ManyToOne
	@JoinColumn(name="PROJECT_ID")
	private SalaryProject salaryProject;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public ProjectShuju() {
	}

	public long getPshujuId() {
		return this.pshujuId;
	}

	public void setPshujuId(long pshujuId) {
		this.pshujuId = pshujuId;
	}

	public BigDecimal getPshujuData() {
		return this.pshujuData;
	}

	public void setPshujuData(BigDecimal pshujuData) {
		this.pshujuData = pshujuData;
	}

	public Salary getSalary() {
		return this.salary;
	}

	public void setSalary(Salary salary) {
		this.salary = salary;
	}

	public SalaryProject getSalaryProject() {
		return this.salaryProject;
	}

	public void setSalaryProject(SalaryProject salaryProject) {
		this.salaryProject = salaryProject;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}